home *** CD-ROM | disk | FTP | other *** search
/ Sky at Night 2007 June / SAN CD 6-2007 CD-ROM 25.iso / pc / Software / AstroGrav_Win / Java / jre1.6.0 / lib / rt.jar / java / util / WeakHashMap$Entry.class (.txt) < prev    next >
Encoding:
Java Class File  |  2006-11-29  |  2.2 KB  |  86 lines

  1. package java.util;
  2.  
  3. import java.lang.ref.ReferenceQueue;
  4. import java.lang.ref.WeakReference;
  5.  
  6. class WeakHashMap$Entry<K, V> extends WeakReference<K> implements Map.Entry<K, V> {
  7.    private V value;
  8.    private final int hash;
  9.    private WeakHashMap$Entry<K, V> next;
  10.  
  11.    WeakHashMap$Entry(K var1, V var2, ReferenceQueue<K> var3, int var4, WeakHashMap$Entry<K, V> var5) {
  12.       super(var1, var3);
  13.       this.value = var2;
  14.       this.hash = var4;
  15.       this.next = var5;
  16.    }
  17.  
  18.    public K getKey() {
  19.       return (K)WeakHashMap.access$300(this.get());
  20.    }
  21.  
  22.    public V getValue() {
  23.       return this.value;
  24.    }
  25.  
  26.    public V setValue(V var1) {
  27.       Object var2 = this.value;
  28.       this.value = var1;
  29.       return (V)var2;
  30.    }
  31.  
  32.    public boolean equals(Object var1) {
  33.       if (!(var1 instanceof Map.Entry)) {
  34.          return false;
  35.       } else {
  36.          Map.Entry var2 = (Map.Entry)var1;
  37.          Object var3 = this.getKey();
  38.          Object var4 = var2.getKey();
  39.          if (var3 == var4 || var3 != null && var3.equals(var4)) {
  40.             Object var5 = this.getValue();
  41.             Object var6 = var2.getValue();
  42.             if (var5 == var6 || var5 != null && var5.equals(var6)) {
  43.                return true;
  44.             }
  45.          }
  46.  
  47.          return false;
  48.       }
  49.    }
  50.  
  51.    public int hashCode() {
  52.       Object var1 = this.getKey();
  53.       Object var2 = this.getValue();
  54.       return (var1 == null ? 0 : var1.hashCode()) ^ (var2 == null ? 0 : var2.hashCode());
  55.    }
  56.  
  57.    public String toString() {
  58.       return this.getKey() + "=" + this.getValue();
  59.    }
  60.  
  61.    // $FF: synthetic method
  62.    static int access$000(WeakHashMap$Entry var0) {
  63.       return var0.hash;
  64.    }
  65.  
  66.    // $FF: synthetic method
  67.    static WeakHashMap$Entry access$100(WeakHashMap$Entry var0) {
  68.       return var0.next;
  69.    }
  70.  
  71.    // $FF: synthetic method
  72.    static WeakHashMap$Entry access$102(WeakHashMap$Entry var0, WeakHashMap$Entry var1) {
  73.       return var0.next = var1;
  74.    }
  75.  
  76.    // $FF: synthetic method
  77.    static Object access$202(WeakHashMap$Entry var0, Object var1) {
  78.       return var0.value = (V)var1;
  79.    }
  80.  
  81.    // $FF: synthetic method
  82.    static Object access$200(WeakHashMap$Entry var0) {
  83.       return var0.value;
  84.    }
  85. }
  86.